﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sabloane_de_proiectare.Singleton
{
    public class BinaryMatrix
    {
        private static BinaryMatrix INSTANCE = null;
        private int[][] Matrix;
        private BinaryMatrix() {
            INSTANCE = this;
            Matrix = new int[10][ ];
            for (int i = 0; i < 10; i++)
            {
                Matrix[i] = new int[10];
                for (int j = 0; j < 10 ; j++) {
                    Matrix[i][j] = 0;
                }
            }
        }
        public void addPath(int line, int column,int type)
        {
            Matrix[line][column] = type;
        }
     
        public static BinaryMatrix Instance() {
            if ( BinaryMatrix.INSTANCE == null ){
                BinaryMatrix.INSTANCE = new BinaryMatrix();
            }
            return BinaryMatrix.INSTANCE;
        }
    }
}
